package com.example.day2.entity;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.room.Entity;
import androidx.room.PrimaryKey;


/**
 * 用户余额
 */
@Entity(tableName = UserAccount.TABLE_NAME)
public class UserAccount {
    public static final String TABLE_NAME = "username_account";
    @PrimaryKey
    @NonNull
    private String username;
    private double money;

    public String getUsername() {
        return username;
    }

    public double getMoney() {
        return money;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setMoney(double money) {
        this.money = money;
    }
}
